package org.xx.armory.ofs.config;

import org.apache.commons.vfs2.FileSystemException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.xx.armory.commons.ForLogging;
import org.xx.armory.spring5.vfs2.FileSystemManagerFactory;

@Configuration
public class FileSystemConfig {
    @ForLogging
    private final Logger logger = LoggerFactory.getLogger(FileSystemConfig.class);

    @Bean
    public FileSystemManagerFactory fileSystemManager()
            throws FileSystemException {
        return new FileSystemManagerFactory();
    }
}
